﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//using MySql.Data.MySqlClient;
using PUCP.SI2.SGIRP.GUI;
using PUCP.SI2.SGIRP.BE;
using PUCP.SI2.SGIRP.BC;
using PUCP.SI2.SGIRP;


namespace PUCP.SI2.SGIRP.GUI
{
    public partial class NuevoClienteForm : Form
    {
        public NuevoClienteForm()
        {
            InitializeComponent();
        }

        private void toolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void toolStripLabel1_Click(object sender, EventArgs e)
        {

        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {

        }

        private void btnAgregar_Click(object sender, EventArgs e)
        {
            ClienteBE cl = new ClienteBE();

            cl.Ruc = lblRUC.Text;
            cl.RazonSocial = lblRazonSocial.Text;
            cl.Rubro = lblRubro.Text;
            cl.Telefono = lblTelefono.Text;
            cl.DirFiscal = lblDirFiscal.Text;
            cl.DirSucursal = lblDirSucursal.Text;
            cl.NombreContacto = lblContacto.Text;
            cl.CargoContacto = lblCargo.Text;
            cl.EmailContacto = lblEmail.Text;
            
            this.Close();

        }

        private void btnCancelar_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
